jsessionId and mod_cache

jsessionId and mod_cache

am 31.08.2009 11:55:15 von Frank Hamilton

Hi,

I mounted lenya with apache2 reverse proxy and mod_cache
My problem is that the JSESSIONID that the cliente id for navigation is not
maintained throughout the navigation.
I think the pages stored in the cache are in the header set-cookie
jsessionid = blablabla and this causes the client session identifier change
incorrectly. Hence all the client data you store in session disappear.

This is the configuration I use mod_cache

CacheEnable disk /
CacheRoot / var/cache/apache2/mod_disk_cache

CacheDirLevels 5
CacheDirLength 3

Anybody know where I can use mod_cache and that the jsessionid is maintained
throughout the user's browsing?

TIA

--
View this message in context: http://www.nabble.com/jsessionId-and-mod_cache-tp25220889p25 220889.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: jsessionId and mod_cache

am 01.09.2009 03:41:09 von Igor Cicimov

--000e0cd61a52a289f004727a3e6b
Content-Type: text/plain; charset=ISO-8859-1

So don't cache the set-cookie headers. Read the mod_cache info there is
example how to exclude responses with set-cookie header from caching.


On Mon, Aug 31, 2009 at 7:55 PM, Frank Hamilton wrote:

>
> Hi,
>
> I mounted lenya with apache2 reverse proxy and mod_cache
> My problem is that the JSESSIONID that the cliente id for navigation is not
> maintained throughout the navigation.
> I think the pages stored in the cache are in the header set-cookie
> jsessionid = blablabla and this causes the client session identifier change
> incorrectly. Hence all the client data you store in session disappear.
>
> This is the configuration I use mod_cache
>
> CacheEnable disk /
> CacheRoot / var/cache/apache2/mod_disk_cache
>
> CacheDirLevels 5
> CacheDirLength 3
>
> Anybody know where I can use mod_cache and that the jsessionid is
> maintained
> throughout the user's browsing?
>
> TIA
>
> --
> View this message in context:
> http://www.nabble.com/jsessionId-and-mod_cache-tp25220889p25 220889.html
> Sent from the Apache HTTP Server - Users mailing list archive at
> Nabble.com.
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--000e0cd61a52a289f004727a3e6b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

So don't cache the set-cookie headers. Read the mod_cache info there is=
example how to exclude responses with set-cookie header from caching.
<=
br>

On Mon, Aug 31, 2009 at 7:55 PM, Frank Ha=
milton <iicc96@h=
otmail.com
>
wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,



I mounted lenya with apache2 reverse proxy and mod_cache

My problem is that the JSESSIONID that the cliente id for navigation is not=


maintained throughout the navigation.

I think the pages stored in the cache are in the header set-cookie

jsessionid =3D blablabla and this causes the client session identifier chan=
ge

incorrectly. Hence all the client data you store in session disappear.



This is the configuration I use mod_cache



=A0 =A0 =A0CacheEnable disk /

=A0 =A0 =A0CacheRoot / var/cache/apache2/mod_disk_cache



=A0 =A0 =A0CacheDirLevels 5

=A0 =A0 =A0CacheDirLength 3



Anybody know where I can use mod_cache and that the jsessionid is maintaine=
d

throughout the user's browsing?



TIA



--

View this message in context: nd-mod_cache-tp25220889p25220889.html" target=3D"_blank">http://www.nabble.=
com/jsessionId-and-mod_cache-tp25220889p25220889.html


Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com=
..





------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--000e0cd61a52a289f004727a3e6b--

Re: jsessionId and mod_cache

am 02.09.2009 08:31:27 von Frank Hamilton

Thank Igor,
well, I think the issue is resolved, to prevent cached page header I used
CacheIgnoreHeaders, and in my case y do not want to cache set-cookie value.
CacheIgnoreHeaders set-cookie, with this directive the diferent user session
is not mix.
Thanks.
--
View this message in context: http://www.nabble.com/jsessionId-and-mod_cache-tp25220889p25 252322.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: jsessionId and mod_cache

am 04.09.2009 09:27:42 von Igor Cicimov

--000e0cd488308d4a970472bb6f7b
Content-Type: text/plain; charset=ISO-8859-1

good work :)

On Wed, Sep 2, 2009 at 4:31 PM, Frank Hamilton wrote:

>
> Thank Igor,
> well, I think the issue is resolved, to prevent cached page header I used
> CacheIgnoreHeaders, and in my case y do not want to cache set-cookie value.
> CacheIgnoreHeaders set-cookie, with this directive the diferent user
> session
> is not mix.
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/jsessionId-and-mod_cache-tp25220889p25 252322.html
> Sent from the Apache HTTP Server - Users mailing list archive at
> Nabble.com.
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--000e0cd488308d4a970472bb6f7b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

good work :)

On Wed, Sep 2, 2009 at 4:31 =
PM, Frank Hamilton < om">iicc96@hotmail.com> wrote:
quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt =
0pt 0.8ex; padding-left: 1ex;">


Thank Igor,

well, I think the issue is resolved, to prevent cached page header I used r>
CacheIgnoreHeaders, and in my case y do not want to cache set-cookie value.=


CacheIgnoreHeaders set-cookie, with this directive the diferent user sessio=
n

is not =A0mix.

Thanks.

--

View this message in context: nd-mod_cache-tp25220889p25252322.html" target=3D"_blank">http://www.nabble.=
com/jsessionId-and-mod_cache-tp25220889p25252322.html


Sent from the Apache HTTP Server -=
Users mailing list archive at Nabble.com.





------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--000e0cd488308d4a970472bb6f7b--